#include "stdafx.h"

extern HMODULE hInstance;

BOOL APIENTRY DllMain( HINSTANCE instance,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		if(hInstance == NULL)
			hInstance = instance;
		break;
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	default:
		OutputDebugString(L"Unknown ul_reason_for_call value.");
	}
	return TRUE;
}